package ezcaptcha

import (
	"fmt"
	"gitee.com/kaylee595/gkaylee/kerr"
	"github.com/imroc/req/v3"
)

func UnmarshalJson(resp *req.Response, v any) error {
	if err := resp.UnmarshalJson(v); err != nil {
		return kerr.WrapTraceStack(fmt.Errorf("%w, resp body: %s", err, resp.String()))
	}
	return nil
}
